package com.sh.泛微;

/**
 * @Auther: sh
 * @Version 1.0
 * @Description:
 */
public class 字符串中有2个符号怎么通过split区分开来 {
    public static void main(String[] args) {
        String str = "苹果、香蕉，橙子";
        String[] parts = str.split("[、，]");

        for (String part : parts) {
            System.out.println(part);
        }
    }
}

